<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>前后端调用-post</title>
	</head>
	<body>
		<h1>前后端调用</h1>
		<script src="../js/axios.js"></script>
		
		<script>
		let user = {
			id: 238,
			name: "小鬼",
			age: 4,
			sex: '男'
		}
		let url = "http://localhost:8090/axios/updateUser"
		axios.put(url,user)
		.then(Promise=> {
			console.log(Promise.data)
			})
		
		</script>
		
	</body>
</html>
